package com.example.huadu_server.landlord.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UpdateInfoDTO {

    @NotBlank(message = "用户名不能为空")
    @Size(max = 50, message = "用户名长度不能超过50个字符")
    private String username;

    @NotBlank(message = "电话号码不能为空")
    @Size(max = 11, message = "电话号码有误")
    private String phone;

    private String gender;

    private String logo;
}
